package com.lbj.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbj.mall.common.utils.PageUtils;
import com.lbj.mall.product.entity.AttrEntity;
import com.lbj.mall.product.entity.vo.AttrRespVo;
import com.lbj.mall.product.entity.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author libingjun
 * @email 617416791@qq.com
 * @date 2022-03-27 10:44:55
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrAndAttrGroup(AttrVo vo);

    AttrRespVo getInfoFromAttrId(Long attrId);

    void updateAttrAndAttrGroup(AttrVo vo);

    PageUtils queryBaseOrSaleList(Map<String, Object> params, int attrType, Long categoryId);

    List<Long> queryCanSearchAttrId(List<Long> attrIdList);
}

